module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
  
    const UserSchema = new Schema({
      account: { type: String ,required:true},
      password: { type: String ,required:true},
      nickname:{type:String,default:null},
      email:{type:String,required:true},
      phone:{type:String,required:true},
      avater:{type:String,default:null},
      subscribecount:{type:Number,default:0},
    });
    return mongoose.model('User', UserSchema);
  }
  